package com.winz.cultureapp.adapter.vp;

import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentStatePagerAdapter;

import java.util.List;

/**
 * Created by terry on 2017/10/23.
 * 主界面
 */
public class MainContentVpAdapter extends FragmentStatePagerAdapter{
    private  List<Fragment> mList_fragment;

    public MainContentVpAdapter(FragmentManager supportFragmentManager, List<Fragment> mList_fragment) {
        super(supportFragmentManager);
        this.mList_fragment = mList_fragment;
    }

    @Override
    public Fragment getItem(int position) {
        return mList_fragment.get(position);
    }

    @Override
    public int getCount() {
        return mList_fragment.size();
    }
}
